<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>反馈列表</title>

    <link
      rel="shortcut icon"
      href="https://static.jyshare.com/images/favicon.ico"
    />
    <link
      rel="stylesheet"
      href="//at.alicdn.com/t/c/font_4522611_wieqaqu8q4.css"
    />

    <link rel="stylesheet" href="<?php echo DIR_PUBLIC; ?>/css/reset.css" />
    <link rel="stylesheet" href="<?php echo DIR_PUBLIC; ?>/css/public.css" />
    <link
      rel="stylesheet"
      href="<?php echo DIR_PUBLIC; ?>/css/list_feedback.css"
    />
  </head>

  <body>
    <div class="header">
      <div class="logo">
        <a href="http://127.24.6.11/">智慧璇玑</a>
      </div>
      <div class="banner">
        <a href="http://127.24.6.11/">首页</a>
        <a href="<?php echo DIR_MODEL; ?>/publish.php">新帖</a>
        <a href="<?php echo DIR_MODEL; ?>/list_father.php">话题</a>
      </div>
      <ul>
        <li>
          <a href="<?php echo DIR_MODEL; ?>/login.php">登录</a>&nbsp;/&nbsp;
          <a href="<?php echo DIR_MODEL; ?>/register.php">注册</a>
        </li>
        <li>
          <a href="<?php echo DIR_MODEL; ?>/upload_img.php">
            <span class="iconfont icon-geren"></span>&nbsp;个人中心
          </a>
        </li>
        <li>
          <a href="./logout.php">
            <span class="iconfont icon-kaiguan"></span>&nbsp;注销
          </a>
        </li>
      </ul>
    </div>

    <div class="content">
      <div class="title">反馈列表</div>

      <div class="pages-wrap">
        <ul class="feedback-list">
          <?php if ($rows) { ?>
          <?php foreach($rows as $item): ?>
          <li>
            <div class="feedback-title">
              <p>[反馈类型]</p>
              <p><?php echo $feedback_type[$item['feed_type']]; ?></p>
            </div>
            <div class="list-time">
              <p>[反馈时间]</p>
              <p><?php echo date('Y-m-d H:i:s', $item['feed_time']); ?></p>
            </div>
            <div class="list-content">
              <p>[反馈内容]</p>
              <p><?php echo $item['feed_content']; ?></p>
            </div>
          </li>
          <?php endforeach; ?>
          <?php } else { ?>
          <li>
            <div class="no-data">暂无反馈</div>
          </li>
          <?php } ?>
        </ul>
      </div>
    </div>

    <div class="footer">
      <div class="footer-title">智慧璇玑</div>
      <div class="footer-content">
        Copyright &copy; 2024 智慧璇玑 All Rights Reserved
      </div>
    </div>
  </body>
</html>
